home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Release DHCP.xpl < prev    next >
Text File  |  2001-01-21  |  2KB  |  49 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH 1"="Startup/Shutdown\Shutdown\Windows 9x/ME\20) Shutdown Options"
  5. "NAME"="Windows 9x/ME Release DHCP on shutdown"
  6. "OSVERSION"="00101"
  7. "WARNING"="1"
  8. "VERSION"="1.01"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="Release DHCP on logoff"
  11. "DESCRIPTION 1"="To automatically release all Dynamic Host Configuration Protocol (DHCP) lease information at shutdown, check box; IMPORTANT: Fast Shutdown must be disabled."
  12. "DESCRIPTION 2"="For additional information about releasing DHCP, see: http://support.microsoft.com/support/kb/articles/q217/0/35.asp."
  13. "DESCRIPTION 3"="*IMPORTANT* If you have activated this setting and then disabled it again, the "Fast Shutdown" feature of Windows will remain turned off!"
  14. "AUTHOR"="Ojatex@aol.com"
  15. "CONTACTURL"="http://members.aol.com/ojatex/"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18. "COMMENT 2"="Thanks to Axcel216 for tip."
  19.  
  20. sV1="HKLM\System\CurrentControlSet\Services\VxD\DHCP\ReleaseLeaseOnShutdown"
  21. sV2="HKLM\System\CurrentControlSet\Control\Shutdown\FastReboot"
  22.  
  23. Sub Plugin_Initialize 
  24.     i=RegReadValue(sV1)
  25.     if i=1  then 
  26.        SetUIElement 1,true
  27.     end if
  28. End Sub
  29.  
  30. Sub Plugin_CheckData(ElementIndex)
  31. End Sub
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  b=GetUIElement(1)
  35.  if b=true then
  36.     Call RegWriteValue(sV1,1,2)
  37.     Call RegWriteValue(sV2,0,1)
  38.  else
  39.     if RegValueExists(sV1) then Call RegDeleteValue(sV1)
  40.  end if
  41.  
  42. End Sub
  43.  
  44. Sub Plugin_Terminate 
  45. End Sub
  46.  
  47.  
  48.  
  49.